<?
//<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
session_start();
require("s_inc.php");
admin_main::pageChk(false);
?>
<? require("s_head.tpl.php");?>
<form name="adminAdmin" method="post" action="s_action.php" onsubmit="return adminAdmin_chk(this)">
	<table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableoutline">
	  <tr class="tbhead">
		<td colspan="2">管理員帳號密碼設定</td>
	  </tr>
	  <tr class="_data_">
		<td width="21%" align="right">舊密碼：</td>
		<td width="79%" align="left">
			<input name="pwd" type="password" id="pwd">
		</td>
	  </tr>
	  <tr class="_data_">
		<td align="right">新密碼：</td>
		<td align="left"><input name="newPwd" type="password" id="newPwd" >      </td>
	  </tr>
	  <tr class="_data_">
		<td align="right">確認新密碼：</td>
		<td align="left"><input name="newPwd2" type="password" id="newPwd2"></td>
	  </tr>
	  <tr class="_data_">
		<td align="right">&nbsp;</td>
		<td align="left">
		  <input name="Submit" type="Submit" class="bginput" value="修改">
		  <input name="Submit" type="reset" class="bginput" value="重設">
		  <input name="action" type="hidden" id="action" value="modifyPassWorld">
		</td>
	  </tr>  
	</table>
</form>
<script language="JavaScript" type="text/JavaScript">
<!--
function adminAdmin_chk(a)
{
	if(a.pwd.value=='')
	{
		alert('請輸入舊密碼!');
		a.pwd.focus();
		return false;
	}else if(a.newPwd.value=='')
	{
		alert('請輸入新的密碼');
		a.newPwd.focus();
		return false;
	}else if(a.newPwd.value!=a.newPwd2.value)
	{
		alert('確認密碼有誤!');
		a.newPwd2.focus();
		return false;
	}else{
		return true;
	}
}
//-->
</script>
<?php include("s_copyRight.tpl.php"); ?>
